package 设计模式.util.builder;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class Airship {
    private OrbitalModule orbitalmodule; //轨道器
    private Engin engin; //发动机

    public Airship(OrbitalModule orbitalmodule, Engin engin, EscapeTower escapeTower) {
        this.orbitalmodule = orbitalmodule;
        this.engin = engin;
        this.escapeTower = escapeTower;
    }

    public EscapeTower getEscapeTower() {
        return escapeTower;
    }

    public Airship(OrbitalModule orbitalmodule) {
        this.orbitalmodule = orbitalmodule;
    }

    public void setEscapeTower(EscapeTower escapeTower) {
        this.escapeTower = escapeTower;
    }

    private EscapeTower escapeTower; //逃逸塔
   public void lantch(){
       System.out.println("fashe");
   }

}
class OrbitalModule{
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OrbitalModule(String name) {
        this.name = name;
    }

    private String name;
}
class Engin{
    public Engin(String engin) {
        this.engin = engin;
    }

    public String getEngin() {
        return engin;
    }

    public void setEngin(String engin) {
        this.engin = engin;
    }

    private String engin;
}
class EscapeTower{
    public EscapeTower(String escapeTower) {
        this.escapeTower = escapeTower;
    }

    public String getEscapeTower() {
        return escapeTower;
    }

    public void setEscapeTower(String escapeTower) {
        this.escapeTower = escapeTower;
    }

    private String escapeTower;
}
